home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freedom Crack 9
/
Freedom Crack - Issue 9 (1992-05)(Freedom).adf
/
sources
/
borderoff.S
Wrap
Text File
|
2022-11-05
|
1KB
|
76 lines
movem.l d0-d7/a0-a6,-(a7)
move.l 4,a6
lea dosname,a1
jsr -408(a6)
move.l d0,dosbase
lea intname,a1
jsr -408(a6)
move.l d0,intbase
bsr borderoff
move.l 4,a6
move.l intbase,a1
jsr -414(a6)
move.l dosbase,a1
jsr -414(a6)
movem.l (a7)+,d0-d7/a0-a6
clr.l d0
rts
Borderoff:
move.l intbase,a6
move.l $34(a6),a0
move.l #$23800,$18(a0)
clr.l $36(a0)
moveq #0,d0
moveq #0,d1
moveq #0,d2
move.w 4(a0),d2
sub.l d2,d0
move.w 6(a0),d2
sub.l d2,d1
jsr -168(a6)
move.l #640,d0
move.l #256,d1
move.w 8(a0),d2
sub.l d2,d0
move.w 10(a0),d2
sub.l d2,d1
jsr -288(a6)
move.l a1,-(sp)
move.l 4.w,a1
tst.w $22(a1)
bgt.s nowa
wait:
cmp.w #640,8(a0)
bne.s wait
wait2: cmp.w #256,10(a0)
bne.s wait2
nowa: move.l (sp)+,a1
move.l #640,d7
move.l d7,d0
move.l d7,d2
move.l #256,d7
move.l d7,d1
move.l d7,d3
jsr -318(a6)
move.l dosbase(pc),a6
jsr -60(a6)
move.l d0,d1
move.l #offtext,d2
moveq #2,d3
jsr -48(a6)
rts
intbase: dc.l 0
dosbase: dc.l 0
intname: dc.b "intuition.library",0
even
dosname: dc.b "dos.library",0
even
offtext: dc.b 27,"c"
even